package com.ogawa.base.utils;

import android.content.Context;
import android.os.Environment;

import com.ogawa.base.base.BaseApp;

public class FileUtils {

    public static String getExternalFilesDir(Context context){
        return  context.getExternalFilesDir(null).getAbsolutePath();
    }
    /*
    获取根目录
     */
    public static String getRootPath(){
        try{
            String rootPath = Environment
                    .getExternalStorageDirectory().getAbsolutePath();
            try{
//                String absolutePath = BaseApp.appContext.getExternalFilesDir(null).getAbsolutePath();
            }catch (Exception e){
                e.printStackTrace();
            }
            return rootPath;
        }catch (Exception e){
            e.printStackTrace();
        }
        return "";
    }


}
